import request from '@/utils/request'

// 查询董监高席位列表
export function listDsBod(query) {
  return request({
    url: '/bod/dsBod/list',
    method: 'get',
    params: query
  })
}
// 查询董监高席位列表
export function listByCompanyId(query) {
  return request({
    url: '/date/dsBodDate/listByCompanyId',
    method: 'get',
    params: query
  })
}

export function findDsBySeatIndex(query) {
  return request({
    url: '/bod/dsBod/findDsBySeatIndex',
    method: 'get',
    params: query
  })
}

// 查询董监高席位详细
export function getDsBod(id) {
  return request({
    url: '/bod/dsBod/' + id,
    method: 'get'
  })
}

// 保存董监高席位
export function saveDsBod(data) {
  return request({
    url: '/bod/dsBod/save',
    method: 'post',
    data: data
  })
}
// 添加下一位席位信息
export function saveNextDsBod(data) {
  return request({
    url: '/bod/dsBod/saveNextDsBod',
    method: 'post',
    data: data
  })
}

// 删除董监高席位
export function delDsBod(id) {
  return request({
    url: '/bod/dsBod/' + id,
    method: 'delete'
  })
}

// 导出董监高席位
export function exportDsBod(query) {
  return request({
    url: '/bod/dsBod/export',
    method: 'get',
    params: query
  })
}

// 批量保存董监高席位
export function batchSaveBod(data) {
  return request({
    url: '/date/dsBodDate/batchSave',
    method: 'post',
    data: data
  })
}

// 获取外部批披露信息
export function findVEOI(id) {
  return request({
    url: '/bod/dsBod/findVEOI?companyId=' + id,
    method: 'get'
  })
}
